//
//  homePageModel.m
//  giuseppe
//
//  Created by Apple on 15/8/18.
//  Copyright (c) 2015年 GiantUmbrella. All rights reserved.
//

#import "homePageModel.h"

@implementation homePageModel


static homePageModel *_order;

+(homePageModel *)order
{
    @synchronized ([homePageModel class])
    {
        if (_order == nil)
        {
            _order = [[homePageModel alloc] init];
        }
    }
    return _order;
}



+ (instancetype) initWithDicAttributes:(NSDictionary *)dic {
    
    
    homePageModel *tmp = [[homePageModel alloc] init];
    
    
    if (dic) {

        
        tmp.amount = [dic objectForKey:@"amount"];
        tmp.suiturl = [dic objectForKey:@"suiturl"];
        tmp.brief = [dic objectForKey:@"brief"];
        tmp.suitid = [dic objectForKey:@"suitid"];
        tmp.price = [dic objectForKey:@"price"];
    }
    
    
    return tmp;
    
}




@end
